package com.zrkizzy.seckill.dto;

import com.zrkizzy.seckill.annotation.IsMobile;
import lombok.Data;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotNull;

/**
 * 登录数据传输对象
 *
 * @author zhangrongkang
 * @since 2023/3/21
 */
@Data
public class LoginDTO {

  /**
   * 电话号码
   */
  @NotNull
  @IsMobile
  private String mobile;

  /**
   * 登录密码
   */
  @NotNull
  @Length(min = 32)
  private String password;

}
